#ifndef FLASHVIEW_H
#define FLASHVIEW_H

#include "workspace.h"
#include "serial.h"
#include "ui_mainwindow.h"
#include <QObject>
#include <QSettings>
#include "glparse.h"
#include "testthread.h"
#include "flashthread.h"
#include <QProgressBar>
#include "workspace.h"
class FlashView : public QObject
{
    Q_OBJECT
private:
    Ui::MainWindow *ui;
    GLParse *glParse;
    QWidget *qWidge;
    FlashThread flashThread;
    QProgressBar *flashProgressBar;
public:
    FlashView();
    void init(QWidget *qWidge,Ui::MainWindow *ui,GLParse *glParse);

private slots:
    void flashStatusSlots(int staus,QString str);
    void on_pushButtonOpenFlashFile_clicked();
    void on_pushButtonFlashStart_clicked();

};

#endif // FLASHVIEW_H
